{{include template('public/header','admin')}}
<link href="{{STATIC_URL}}/plugins/calendar/calendar.css" rel="stylesheet" type="text/css"/>
<script src="{{STATIC_URL}}/plugins/calendar/calendar.js" type="text/javascript"></script>
<script type="text/javascript">
function batchremove() {
    var addressVal = $("input[name='optype']:checked").val();
    var msg = "请选择";
    if (addressVal == "del") {
        msg = '确认要删除吗？';
    } else if (addressVal == "check") {
        msg = '确认要通过审核成功吗？';
    } else {
        msg = "请选择";
    }
    layer.confirm(msg, function (index) {
        if (msg != "请选择") {
            document.getElementById('cpform').submit();
        }
    });
}
</script>
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <form id='cpform' name='cpform' method="post" action="/member/member/batchremove" class="form-inline" role="form">
                    <table id='MemberList' class="table table-condensed table-hover table-striped tablesorter table-fixed table-selectable">
                        <thead>
                            <tr>
                                <th style="width: 15px;"></th>
                                <th>{{L('member_uid')}}</th>
                                <th>{{L('member_username')}}</th>
                                <th>{{L('member_email')}}</th>
                                <th>{{L('member_score')}}</th>
                                <th>{{L('member_experience')}}</th>
                                <th>{{L('member_regip')}}</th>
                                <th>{{L('member_lastlogintime')}}</th>
                                <th>{{L('member_loginnum')}}</th>
                                <th>{{L('member_groupid')}}</th>
                            </tr>
                        </thead>
                        <tbody>
                            {{foreach $items as $item}}
                            <tr>
                                <td><input type="checkbox" class="checkbox" name="ids[]" value="{{$item.uid}}" /></td>
                                <td >{{$item.uid}}</td>
                                <td >{{$item.username}}</td>
                                <td >{{$item.email}}</td>
                                <td >{{$item.amount}}</td>
                                <td >{{$item.experience}}</td>
                                <td >{{$item.regip}}</td>
                                <td>{{$item.lastlogintime}}</td>
                                <td>{{$item.loginnum}}</td>
                                <td>{{get_groupname($item.groupid)}}</td>

                            </tr>
                            {{/foreach}}
                        </tbody>
                        <tr>
                            <td colspan="15">
                                <div style="text-align: left;">
                                    <input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'ids')" />全选
                                    <input type="radio" class="radio" name="optype" value="del" />删除
                                    <input type="radio" class="radio" name="optype" value="check" />通过审核
                                    <input type='button' class="btn" name="sendsubmit" value="提交" onclick="batchremove()" />
                                    {{include template('public/page','admin')}}
                                </div>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</body>
</html>



